package com.nashuju.web.entity.sw;

import java.util.Date;

import org.durcframework.core.expression.annotation.ValueField;
import org.durcframework.core.support.SearchEasyUI;
import org.durcframework.core.util.DateUtil;


public class SMessageSch extends SearchEasyUI{

    //根据时间进行搜索的部分
    private Date createdStartSch;
    private Date createdEndSch;

    @ValueField(column = "createdTime", equal = ">=")
    public Date getCreatedStartSch() {
        return createdStartSch;
    }

    public void setCreatedStartSch(Date createdStartSch) {
        this.createdStartSch = createdStartSch;
    }

    @ValueField(column = "createdTime", equal = "<")
    public Date getCreatedEndSch() {
        if (createdEndSch != null) {
            return DateUtil.getDateAfterDay(createdEndSch, 1);
        }
        return createdEndSch;
    }

    public void setCreatedEndSch(Date createdEndSch) {
        this.createdEndSch = createdEndSch;
    }


    private Integer idSch;
    private Integer userIdSch;
    private String messageSch;
    private Date sendTimeSch;
    private Date receiveTimeSch;
    private String aliasSch;
    private Integer meachineNumSch;
    private Date createdTimeSch;
    private Date editedTimeSch;
    private String statusSch;
    private String sendTagSch;
    private String receiveTagSch;
    private String sendTypeSch;
    private String workRecordSch;
    private Integer receiveIdSch;
    private Integer taskIdSch;
    private String taskNumSch;
    private String shortNameSch;
    private String taskTypeSch;
    private String detailInfoSch;
    private String usernameSch;
    private Date timeSch;
    private String destinationSch;
    private String tingsToDoSch;
    private Boolean isReadSch;
    public void setIdSch(Integer idSch){
        this.idSch = idSch;
    }
    
    @ValueField(column = "id")
    public Integer getIdSch(){
        return this.idSch;
    }

    public void setUserIdSch(Integer userIdSch){
        this.userIdSch = userIdSch;
    }
    
    @ValueField(column = "user_id")
    public Integer getUserIdSch(){
        return this.userIdSch;
    }

    public void setMessageSch(String messageSch){
        this.messageSch = messageSch;
    }
    
    @ValueField(column = "message")
    public String getMessageSch(){
        return this.messageSch;
    }

    public void setSendTimeSch(Date sendTimeSch){
        this.sendTimeSch = sendTimeSch;
    }
    
    @ValueField(column = "send_time")
    public Date getSendTimeSch(){
        return this.sendTimeSch;
    }

    public void setReceiveTimeSch(Date receiveTimeSch){
        this.receiveTimeSch = receiveTimeSch;
    }
    
    @ValueField(column = "receive_time")
    public Date getReceiveTimeSch(){
        return this.receiveTimeSch;
    }

    public void setAliasSch(String aliasSch){
        this.aliasSch = aliasSch;
    }
    
    @ValueField(column = "alias")
    public String getAliasSch(){
        return this.aliasSch;
    }

    public void setMeachineNumSch(Integer meachineNumSch){
        this.meachineNumSch = meachineNumSch;
    }
    
    @ValueField(column = "meachine_num")
    public Integer getMeachineNumSch(){
        return this.meachineNumSch;
    }

    public void setCreatedTimeSch(Date createdTimeSch){
        this.createdTimeSch = createdTimeSch;
    }
    
    @ValueField(column = "created_time")
    public Date getCreatedTimeSch(){
        return this.createdTimeSch;
    }

    public void setEditedTimeSch(Date editedTimeSch){
        this.editedTimeSch = editedTimeSch;
    }
    
    @ValueField(column = "edited_time")
    public Date getEditedTimeSch(){
        return this.editedTimeSch;
    }

    public void setStatusSch(String statusSch){
        this.statusSch = statusSch;
    }
    
    @ValueField(column = "status")
    public String getStatusSch(){
        return this.statusSch;
    }

    public void setSendTagSch(String sendTagSch){
        this.sendTagSch = sendTagSch;
    }
    
    @ValueField(column = "send_tag")
    public String getSendTagSch(){
        return this.sendTagSch;
    }

    public void setReceiveTagSch(String receiveTagSch){
        this.receiveTagSch = receiveTagSch;
    }
    
    @ValueField(column = "receive_tag")
    public String getReceiveTagSch(){
        return this.receiveTagSch;
    }

    public void setSendTypeSch(String sendTypeSch){
        this.sendTypeSch = sendTypeSch;
    }
    
    @ValueField(column = "send_type")
    public String getSendTypeSch(){
        return this.sendTypeSch;
    }

    public void setWorkRecordSch(String workRecordSch){
        this.workRecordSch = workRecordSch;
    }
    
    @ValueField(column = "work_record")
    public String getWorkRecordSch(){
        return this.workRecordSch;
    }

    public void setReceiveIdSch(Integer receiveIdSch){
        this.receiveIdSch = receiveIdSch;
    }
    
    @ValueField(column = "receive_id")
    public Integer getReceiveIdSch(){
        return this.receiveIdSch;
    }

    public void setTaskIdSch(Integer taskIdSch){
        this.taskIdSch = taskIdSch;
    }
    
    @ValueField(column = "task_id")
    public Integer getTaskIdSch(){
        return this.taskIdSch;
    }

    public void setTaskNumSch(String taskNumSch){
        this.taskNumSch = taskNumSch;
    }
    
    @ValueField(column = "task_num")
    public String getTaskNumSch(){
        return this.taskNumSch;
    }

    public void setShortNameSch(String shortNameSch){
        this.shortNameSch = shortNameSch;
    }
    
    @ValueField(column = "short_name")
    public String getShortNameSch(){
        return this.shortNameSch;
    }

    public void setTaskTypeSch(String taskTypeSch){
        this.taskTypeSch = taskTypeSch;
    }
    
    @ValueField(column = "task_type")
    public String getTaskTypeSch(){
        return this.taskTypeSch;
    }

    public void setDetailInfoSch(String detailInfoSch){
        this.detailInfoSch = detailInfoSch;
    }
    
    @ValueField(column = "detail_info")
    public String getDetailInfoSch(){
        return this.detailInfoSch;
    }

    public void setUsernameSch(String usernameSch){
        this.usernameSch = usernameSch;
    }
    
    @ValueField(column = "username")
    public String getUsernameSch(){
        return this.usernameSch;
    }

    public void setTimeSch(Date timeSch){
        this.timeSch = timeSch;
    }
    
    @ValueField(column = "time")
    public Date getTimeSch(){
        return this.timeSch;
    }

    public void setDestinationSch(String destinationSch){
        this.destinationSch = destinationSch;
    }
    
    @ValueField(column = "destination")
    public String getDestinationSch(){
        return this.destinationSch;
    }

    public void setTingsToDoSch(String tingsToDoSch){
        this.tingsToDoSch = tingsToDoSch;
    }
    
    @ValueField(column = "tings_to_do")
    public String getTingsToDoSch(){
        return this.tingsToDoSch;
    }

	/**
	 * @return the isReadSch
	 */
    @ValueField(column = "is_read")
	public Boolean getIsReadSch() {
		return isReadSch;
	}

	/**
	 * @param isReadSch the isReadSch to set
	 */
	public void setIsReadSch(Boolean isReadSch) {
		this.isReadSch = isReadSch;
	}


}